<resources>

    <style name="MyMaterialTheme" parent="MyMaterialTheme.Base">
    </style>

    <style name="MyMaterialTheme.Dark" parent="MyMaterialTheme.Base.Dark">
    </style>

    <style name="MyMaterialTheme.Base" parent="Theme.MaterialComponents.Light">
        <item name="windowNoTitle">true</item>
        <item name="windowActionBar">false</item>
        <item name="dialogTheme">@style/DialogTheme</item>
        <item name="alertDialogTheme">@style/AlertTheme</item>
        <item name="bottomSheetDialogTheme">@style/BottomSheetDialogTheme</item>
        <item name="android:windowBackground">@color/windowBackground</item>
        <item name="android:statusBarColor">@color/colorPrimary</item>
        <item name="colorPrimary">@color/colorPrimary</item>
        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
        <item name="colorAccent">@color/colorAccent</item>

        <item name="preferenceTheme">@style/PreferenceThemeOverlay</item>

        <item name="colorPlayerBackground">@color/colorPlayerBackground</item>
        <item name="colorPlayerShadow">@color/colorPlayerShadow</item>
        <item name="tagBackgroundColor">@color/tagBackgroundColor</item>

        <item name="menuTextColorSelected">@color/menuTextColorSelected</item>
        <item name="menuTextColorDefault">@color/menuTextColorDefault</item>
        <item name="itemTextAppearance">@style/MenuTextAppearance</item>

        <item name="menuBottomTextColorSelected">@color/menuBottomTextColorSelected</item>
        <item name="menuBottomTextColorDefault">@color/menuBottomTextColorDefault</item>
        <item name="menuBottomBackgroundColor">@color/menuBottomBackgroundColor</item>

        <item name="swipeDeleteIconColor">@color/swipeDeleteIconColor</item>
        <item name="swipeDeleteBackgroundColor">@color/swipeDeleteBackgroundColor</item>

        <item name="colorTabUnderline">@color/colorTabUnderline</item>

        <item name="android:itemBackground">@color/windowBackground</item>
        <item name="iconsInItemBackgroundColor">@color/iconsInItemBackgroundColor</item>

        <item name="met_baseColor">?android:textColorPrimary</item>
        <item name="met_textColorHint">?android:textColorHint</item>
        <item name="met_primaryColor">?android:colorPrimary</item>

        <item name="snackbarButtonStyle">@style/SnackBarButton</item>

        <!-- workaround for lower API -->
        <item name="colorAccentMy">@color/colorAccent</item>

        <item name="viewInflaterClass">androidx.appcompat.app.AppCompatViewInflater</item>
    </style>

    <style name="MyMaterialTheme.Base.Dark" parent="Theme.MaterialComponents">
        <item name="windowNoTitle">true</item>
        <item name="windowActionBar">false</item>
        <item name="dialogTheme">@style/DialogTheme.Dark</item>
        <item name="alertDialogTheme">@style/AlertTheme.Dark</item>
        <item name="bottomSheetDialogTheme">@style/BottomSheetDialogTheme.Dark</item>
        <item name="android:windowBackground">@color/windowBackgroundDark</item>
        <item name="android:statusBarColor">@color/colorPrimaryDark</item>
        <item name="colorPrimary">@color/colorPrimaryDark</item>
        <item name="colorPrimaryDark">@color/colorPrimary</item>
        <item name="colorAccent">@color/colorAccentDark</item>

        <item name="preferenceTheme">@style/PreferenceThemeOverlay</item>

        <item name="colorPlayerBackground">@color/colorPlayerBackgroundDark</item>
        <item name="colorPlayerShadow">@color/colorPlayerShadowDark</item>

        <item name="tagBackgroundColor">@color/tagBackgroundColorDark</item>

        <item name="menuTextColorSelected">@color/menuTextColorSelectedDark</item>
        <item name="menuTextColorDefault">@color/menuTextColorDefaultDark</item>
        <item name="android:itemTextAppearance">@style/MenuTextAppearance</item>

        <item name="menuBottomTextColorSelected">@color/menuBottomTextColorSelectedDark</item>
        <item name="menuBottomTextColorDefault">@color/menuBottomTextColorDefaultDark</item>
        <item name="menuBottomBackgroundColor">@color/menuBottomBackgroundColorDark</item>

        <item name="swipeDeleteIconColor">@color/swipeDeleteIconColorDark</item>
        <item name="swipeDeleteBackgroundColor">@color/swipeDeleteBackgroundColorDark</item>

        <item name="colorTabUnderline">@color/colorTabUnderlineDark</item>

        <item name="android:itemBackground">@color/windowBackgroundDark</item>
        <item name="iconsInItemBackgroundColor">@color/iconsInItemBackgroundColorDark</item>

        <item name="met_baseColor">?android:textColorPrimary</item>
        <item name="met_textColorHint">?android:textColorHint</item>
        <item name="met_primaryColor">?android:colorPrimaryDark</item>

        <item name="snackbarButtonStyle">@style/SnackBarButtonDark</item>

        <!-- workaround for lower API -->
        <item name="colorAccentMy">@color/colorAccentDark</item>

        <item name="viewInflaterClass">androidx.appcompat.app.AppCompatViewInflater</item>
    </style>

    <style name="IconButton" parent="Widget.MaterialComponents.Button.TextButton">
        <item name="android:minHeight">48dip</item>
        <item name="android:minWidth">48dip</item>
        <item name="android:focusable">true</item>
        <item name="android:clickable">true</item>
    </style>

    <style name="DialogTheme" parent="Theme.MaterialComponents.Light.Dialog">
        <item name="android:windowBackground">@color/windowBackground</item>
    </style>

    <style name="DialogTheme.Dark" parent="Theme.MaterialComponents.Dialog">
        <item name="android:windowBackground">@color/windowBackgroundDark</item>
    </style>

    <style name="AlertTheme" parent="Theme.AppCompat.Light.Dialog.Alert">
        <item name="android:windowBackground">@color/windowBackground</item>
    </style>

    <style name="AlertTheme.Dark" parent="Theme.AppCompat.Dialog.Alert">
        <item name="android:windowBackground">@color/windowBackgroundDark</item>
    </style>

    <style name="BottomSheetDialogTheme" parent="Theme.MaterialComponents.Light.BottomSheetDialog">
        <item name="bottomSheetStyle">@style/BottomSheetTheme</item>
    </style>

    <style name="BottomSheetDialogTheme.Dark" parent="Theme.MaterialComponents.BottomSheetDialog">
        <item name="bottomSheetStyle">@style/BottomSheetTheme.Dark</item>
    </style>

    <style name="BottomSheetTheme" parent="Widget.Design.BottomSheet.Modal">
        <item name="android:background">@color/windowBackground</item>
    </style>

    <style name="BottomSheetTheme.Dark" parent="Widget.Design.BottomSheet.Modal">
        <item name="android:background">@color/windowBackgroundDark</item>
    </style>

    <style name="ProgressBarCircle" parent="Widget.AppCompat.ProgressBar">
        <item name="colorAccent">@android:color/white</item>

    </style>

    <style name="MenuTextAppearance" parent="@android:style/TextAppearance.Widget.IconMenu.Item">
        <item name="android:textColor">@color/textColorPrimary</item>
    </style>

    <style name="SnackBarButton" parent="@style/Widget.MaterialComponents.Button.TextButton.Snackbar">
        <item name="android:textColor">@color/snackBarButtonColor</item>
    </style>

    <style name="SnackBarButtonDark" parent="@style/Widget.MaterialComponents.Button.TextButton.Snackbar">
        <item name="android:textColor">@color/snackBarButtonColor</item>
    </style>
</resources>